import { ResultType } from '@/types/result'

import graphData from '@/json/graphData.json'
import graphView from '@/json/graphView.json'
import graphORM from '@/json/graphORM.json'

export function getGraphViewApi(): Promise<ResultType> {
  return new Promise((resolve, reject) => {
    resolve({
      code: 2000,
      data: graphView,
      message: '',
    })
  })
}

export function getGraphDataApi(): Promise<ResultType> {
  return new Promise((resolve, reject) => {
    resolve(graphData)
  })
}

export function getGraphORMApi(): Promise<ResultType> {
  return new Promise((resolve, reject) => {
    resolve({
      code: 2000,
      data: graphORM,
      message: '',
    })
  })
}
